package tt.lab.pmbok.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity(name="artifact_attribute")
public class ArtifactAttribute {
	private int id;
	private ArtifactTemplate template;
	private int attributeId;
	private String attributeName;
	private String attributeType;
	private String attributeValues;
	
	@Id
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@ManyToOne() 
	@JoinColumn(name="artifact_id")
	public ArtifactTemplate getTemplate() {
		return template;
	}
	public void setTemplate(ArtifactTemplate template) {
		this.template = template;
	}
	@Column(name="attribute_id")
	public int getAttributeId() {
		return attributeId;
	}
	public void setAttributeId(int attributeId) {
		this.attributeId = attributeId;
	}
	
	@Column(name="attribute_name")
	public String getAttributeName() {
		return attributeName;
	}
	public void setAttributeName(String attributeName) {
		this.attributeName = attributeName;
	}
	
	@Column(name="attribute_type")
	public String getAttributeType() {
		return attributeType;
	}
	public void setAttributeType(String attributeType) {
		this.attributeType = attributeType;
	}
	
	@Column(name="attribute_values")
	public String getAttributeValues() {
		return attributeValues;
	}
	public void setAttributeValues(String attributeValues) {
		this.attributeValues = attributeValues;
	}
	
}
